<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')

			const domModule = weex.requireModule('dom')
			domModule.addRule('fontFace', {
				'fontFamily': "iconfont",
				'src': "url('http://at.alicdn.com/t/font_2418213_2vwql7zjr8q.ttf')"
			});

			// 监听中间底部导航按钮
			uni.onTabBarMidButtonTap(() => {
				console.log('监听中间底部导航按钮')
			})
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	@import url("/common/common.css");
	/* 如果不是APP-PLUS-NVUE就引入 */
	/* #ifndef APP-PLUS-NVUE */
	@import url("/common/iconfont.css");

	/* #endif */
	.iconfont {
		font-family: iconfont;
	}
</style>
